<script setup>
import router from '../router';
import { getCurrentInstance, reactive, ref, onMounted } from 'vue'
const { proxy } = getCurrentInstance();
import { fetchApi } from '../apis/fetchapi'
import { userStore } from '../store/index'
const userSData = userStore();
const userInfo = userSData.userInfo;
import GoBack from '../components/GoBack.vue'

onMounted(() => {

})

</script>

<template>
  <div class="indexContainer">
    <GoBack hasUrl="false" title="我的"></GoBack>
    <div class="index-con">
      <div class="shop-con">
        <div class="logo"></div>
        <div class="shop-info">
          <div class="name"><b>{{ userInfo.schemeType }} </b>{{ userInfo.shopName }}</div>
          <div class="tx">所属体系：{{ userInfo.schemeType }}</div>
          <div class="fzr">负责人：{{ userInfo.connectName }}</div>
        </div>
      </div>
      <div class="mine-ul">
        <div class="mine-a" @click="router.push('/myinfo')">我的信息</div>
        <div class="mine-a" @click="router.push('/myactivity')">我的活动</div>
        <div class="mine-a" @click="router.push('/suggestion')">我要反馈</div>
      </div>
    </div>
  </div>
</template>

<style scoped lang="scss">


.indexContainer {
  width: 100%;
  overflow: auto;
  height: 100vh;

  .confirm-title {
    font-size: 32px;
    color: rgb(255, 27, 27);
    text-align: center;
    line-height: 60px;
    height: 105px;
  }
}

.index-con {
  margin: 0 auto;
  background: rgb(245, 245, 245);
  box-sizing: border-box;
  padding-top:15px;
  height: calc(100% - 44px - 75px);
}

.shop-con {
  width: 345px;
  height: 122px;
  margin: 0 auto 20px;
  position: relative;
  background: rgb(203, 36, 50);
  border-radius: 12px;
  display: flex;
  box-sizing: border-box;
  padding: 27px 20px 0;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;

  .shop-info {
    width: 230px;
    margin-bottom: 1px;

    .name b {
      padding-right: 5px;
    }
  }

  .logo {
    width: 48px;
    height: 48px;
    margin-top: 10px;
    background: black;
    margin-right: 18px;
  }

  .name {
    font-size: 14px;
    font-weight: normal;
    height: 20px;
    line-height: 20px;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: rgb(242, 226, 174);
    margin-bottom: 12px;

    b {
      font-size: 16px;
      font-weight: bold;
    }
  }

  .tx {
    font-size: 12px;
    color: rgb(242, 226, 174);
    margin-bottom: 12px;
  }

  .fzr {
    font-size: 12px;
    color: rgb(242, 226, 174);
  }
}
.mine-ul{
  width:100%;
  .mine-a{
    width:345px;
    margin:0 auto;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 16px;
    font-weight: bold;
    border-bottom: 1PX solid #ccc;
    cursor: pointer;
    &:after{
      content:"";
      width:20px;
      height: 20px;
      background:url(../assets/images/ar.png) no-repeat center;
      background-size: 100%;
      display: block;
    }
  }
}
</style>